<template>
  <div class="footer">
    <div class="text-wrapper_18" v-if="this.price">
      <span class="text_95">服务费用：</span>
      <span class="text_96">￥{{ this.price }}</span>
    </div>
    <div class="btn-group">
      <el-button style="background-color: aliceblue;" @click="back()">取 消</el-button>
      <el-button type="primary" @click="submitForm()">保 存</el-button>
    </div>
  </div>
</template>

<script>
  export default {
    name: "AddFooter",
    props: {
      price: {
        type: String,
        default: ''
      }
    },
    data() {
      return {

      }
    },
    methods: {
      // 取消
      back() {
        this.$router.back();
      },
      // submitForm
      submitForm() {
        this.$emit('submitForm');
      },
    }
  }
</script>

<style lang="scss" scoped>
  .footer {
    height: 100px;
    width: 95%;
    display: flex;
    position: fixed;
    bottom: 0;
    justify-content: center;
    align-items: center;
    .text-wrapper_18 {
      width: 120px;
      height: 15px;
      display: flex;
      align-items: center;

      overflow-wrap: break-word;
      font-size: 0;
      font-family: MicrosoftYaHei;
      font-weight: normal;
      text-align: left;
      white-space: nowrap;
      line-height: 14px;
      margin: 0 0 0 67px;
    }
    .btn-group {
     margin-left: auto;
     margin-right: 220px;
    }
  }

  .text_95 {
    width: 120px;
    height: 15px;
    overflow-wrap: break-word;
    color: rgba(31, 35, 43, 1);
    font-size: 14px;
    font-family: MicrosoftYaHei;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    line-height: 14px;
  }
  .text_96 {
    width: 120px;
    height: 15px;
    overflow-wrap: break-word;
    color: rgba(214, 75, 36, 1);
    font-size: 18px;
    font-family: MicrosoftYaHei;
    font-weight: normal;
    text-align: left;
    white-space: nowrap;
    line-height: 18px;
  }

  .el-button {
    background-color: rgba(83, 94, 131, 1);
    border-radius: 4px;
    height: 36px;
    width: 78px;
    margin-right: 20px;
  }

</style>
